package com.mrx.xgateway.controller;

import com.mrx.xgateway.service.FrowardService;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mr.X
 * @since 2024-03-10 下午 6:57:04
 */
@RestController
public class GatewayController {

    @Resource
    private FrowardService frowardService;

    @RequestMapping("/**")
    public Object forward(HttpServletRequest request, HttpServletResponse response) {
        return frowardService.forward(request, response);
    }

}
